#
# TCPBroker make file
#
all: clean broker

broker: main.o broker.o executor.o net.o
	g++ -lpthread broker.o main.o executor.o net.o -o broker
main.o: main.cpp main.h broker.h net.h
	g++ -c main.cpp -o main.o

net.o: net.cpp net.h
	g++ -c net.cpp -o net.o

broker.o: broker.cpp broker.h net.h
	g++ -c broker.cpp -o broker.o

executor: executor.o
	g++ -pthread -lpthread executor.o -o executor
executor.o: executor.h executor.cpp
	g++ -pthread -std=c++0x -c executor.cpp -o executor.o

check: check.o
	g++ -pthread -lpthread check.o -o check
check.o: check.cpp
	g++ -pthread -std=c++0x -c check.cpp -o check.o

clean:
	rm -rf *.o broker executor check *~

